import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function attendanceList(query) {
  return request({
    url: '/system/attendance/list',
    method: 'get',
    params: query
  })
}


// 查询【请填写功能名称】列表
export function attendanceAllList(query) {
  return request({
    url: '/system/attendance/listAll',
    method: 'get',
    params: query
  })
}


export function synchronizationAttendance(createTime) {
  return request({
    url: '/system/attendance/synchronizationAttendance/' + createTime,
    method: 'post'
  })
}


export function detailList(query) {
  return request({
    url: '/system/attendance/detailList',
    method: 'get',
    params: query
  })
}


export function editInfoList(data) {
  return request({
    url: '/system/attendance/editInfoList',
    method: 'put',
    data: data
  })
}


export function editAttendanceList(data) {
  return request({
    url: '/system/attendance/editAttendanceList',
    method: 'put',
    data: data
  })
}


export function synchronizationSalary(data) {
  return request({
    url: '/system/attendance/synchronizationSalary',
    method: 'post',
    data: data
  })
}


export function excelUpload(file) {
  return request({
    url: '/system/attendance/excelUpload',
    method: 'post',
    data: file
  })
}
